import Vue from 'vue'
import Router from 'vue-router'

const _import = require('./_import_' + process.env.NODE_ENV);

Vue.use(Router);

export default new Router({
  routes: [
    {
      path: '/',
      name: 'index',
      component: _import('index'),
      children:[
        {path:'',name:'home',component: _import('home/home'),},
        // {path:'transaction',name:'trade',component:  _import('trade/trade'),},
        {path:'account',name:'account',component: _import('account/account'),},
        {path:'account/vote',name:'vote',component: _import('account/vote'),},
        {path:'account/Eth',name:'account',component: _import('account/accountEth'),},
        {path:'add',name:'add',component:  _import('addwallet/add'),},
        {path:'login',name:'login',component:  _import('user/login'),meta:{fluid:true}},
        {path:'register',name:'register',component:  _import('user/register'),meta:{fluid:true} },
      ]
    }
  ],
  mode:'history'
})
